package com.dianqiu.common.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.dianqiu.base.bean.BaseTO;

/**
 * DqUserBetConfig entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "dq_user_bet_config", catalog = "dq_dev")
public class DqUserBetConfigTO extends BaseTO implements java.io.Serializable {

	private String userId;
	private DqBetCompanyTO dqBetCompany;
	private Long balance;
	private Integer chaseBetInd;
	private Long profit;

	@Id
	@Column(name = "USER_ID", unique = true, nullable = false, length = 13)
	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PREFER_BET_CMPY")
	public DqBetCompanyTO getDqBetCompany() {
		return this.dqBetCompany;
	}

	public void setDqBetCompany(DqBetCompanyTO dqBetCompany) {
		this.dqBetCompany = dqBetCompany;
	}

	@Column(name = "BALANCE", nullable = false, precision = 10, scale = 0)
	public Long getBalance() {
		return this.balance;
	}

	public void setBalance(Long balance) {
		this.balance = balance;
	}

	@Column(name = "CHASE_BET_IND")
	public Integer getChaseBetInd() {
		return this.chaseBetInd;
	}

	public void setChaseBetInd(Integer chaseBetInd) {
		this.chaseBetInd = chaseBetInd;
	}
	
	@Column(name = "PROFIT", nullable = false, precision = 10, scale = 0)
	public Long getProfit() {
		return profit;
	}

	public void setProfit(Long profit) {
		this.profit = profit;
	}

}